#!/usr/bin/python

from Crypto.Cipher import AES
from string import printable
from hashlib import md5

pt = 'a'*16

with open('enc.txt', 'w') as enc:
    for i in printable:
        for j in printable:
            for k in printable:
                key1 = '0'*13 + i + j + k
                cipher = AES.new(key=key1, mode=AES.MODE_ECB)
                ct = cipher.encrypt(pt.encode('hex'))
                ct_hash = 'md5' + md5(ct).hexdigest()
                enc.write(ct_hash + ' key = ' + key1.encode('hex') + '\n')